﻿using Nop.Core.Domain.Logistics;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nop.Data.Mapping.Logistics
{
    public class CourierMap : EntityTypeConfiguration<LogisticsCourier>
    {
        public CourierMap()
        {
            this.ToTable("LogisticsCourier");
            this.Ignore(c => c.DistrictIds);
            this.Property(c => c.DistrictIdsString);

            this.HasRequired(c => c.Customer)
                .WithOptional();
        }
    }
}
